// 小米官网的写法
!function fontSize(n) {
    let e = n.document;
    let t = e.documentElement;
    let i = 1920;
    let d = i / 100;
    let o = "orientationchange" in n ? "orientationchange" : "resize";
    let a = function () {
        let n = t.clientWidth || 320;
        n > 720 && (n = 720);
        t.style.fontSize = n / d + "px"
    };
    e.addEventListener && (n.addEventListener(o, a, !1), e.addEventListener("DOMContentLoaded", a, !1))
}(window);





